[vars]
filesize=133173
sha512=4b69c5d3008803347d0ce7628957e3873c9ebd799662b25dfb739afb6a1ce97bdd02b0465ac4d949bc38af2155880ac068209dc638b94e5c86a8011ec3a00de0

[mirrors]
http://freefr.dl.sourceforge.net/project/squashfs/squashfs/squashfs4.2/squashfs4.2.tar.gz

[deps]
zlib

[build]
patch -p1 < "$K"/squashfs-tools.patch

cd squashfs-tools

make INSTALL_DIR="$butch_install_dir""$butch_prefix""/bin"\
     EXTRA_LDFLAGS="$optldflags"\
     EXTRA_CFLAGS="-D_GNU_SOURCE -DFNM_EXTMATCH=0 $optcflags"\
     -j$MAKE_THREADS all install
